package wh.observabledata;

import java.util.HashMap;

import wh.Order;

// This class is used with Observer pattern
public class OrderUpdateObject { // update object that contains more information about the type of update for UI
	
	private int status; // indicates different types of updates, that will be 
						// compared to constant int's in the Manager class with explanatory variable names
	private Order order;
	private Order updatedOrder; // finish processing or failed processing
	
	public OrderUpdateObject(Order order)
	{
		this.order = order;
	}
	
	public void setOrder(Order order) {
		this.order = order;
	}
	
	public void setStatus(int status) {
		this.status = status;
	}
	
	public Order getUpdateOrder() {
		return updatedOrder;
	}
	
	public void setUpdateOrder(Order updtOrder) {
		updatedOrder = updtOrder;
	}
	
	public Order getOrder() {
		return order;
	}
	
	public int getStatus() {
		return status;
	}
	
	
	
}
